using System;
using System.Collections;
using System.Collections.Generic;

using MemberMgr.Data.Base;

namespace MemberMgr.Data.BusinessObjects
{
    public partial class tMember : BusinessBase<uint>
    {
        #region Declarations

		private string _membername = String.Empty;
		private string _memberno = String.Empty;
		private string _membertel = String.Empty;
		private string _memberaddress = String.Empty;
		private string _membertype = String.Empty;
		private string _membercard = String.Empty;
		
		
		private IList<tConsumptionMaster> _tConsumptionMasters = new List<tConsumptionMaster>();
		
		#endregion

        #region Constructors

        public tMember() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_membername);
			sb.Append(_memberno);
			sb.Append(_membertel);
			sb.Append(_memberaddress);
			sb.Append(_membertype);
			sb.Append(_membercard);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string Membername
        {
            get { return _membername; }
			set
			{
				OnMembernameChanging();
				_membername = value;
				OnMembernameChanged();
			}
        }
		partial void OnMembernameChanging();
		partial void OnMembernameChanged();
		
		public virtual string Memberno
        {
            get { return _memberno; }
			set
			{
				OnMembernoChanging();
				_memberno = value;
				OnMembernoChanged();
			}
        }
		partial void OnMembernoChanging();
		partial void OnMembernoChanged();
		
		public virtual string Membertel
        {
            get { return _membertel; }
			set
			{
				OnMembertelChanging();
				_membertel = value;
				OnMembertelChanged();
			}
        }
		partial void OnMembertelChanging();
		partial void OnMembertelChanged();
		
		public virtual string Memberaddress
        {
            get { return _memberaddress; }
			set
			{
				OnMemberaddressChanging();
				_memberaddress = value;
				OnMemberaddressChanged();
			}
        }
		partial void OnMemberaddressChanging();
		partial void OnMemberaddressChanged();
		
		public virtual string Membertype
        {
            get { return _membertype; }
			set
			{
				OnMembertypeChanging();
				_membertype = value;
				OnMembertypeChanged();
			}
        }
		partial void OnMembertypeChanging();
		partial void OnMembertypeChanged();
		
		public virtual string Membercard
        {
            get { return _membercard; }
			set
			{
				OnMembercardChanging();
				_membercard = value;
				OnMembercardChanged();
			}
        }
		partial void OnMembercardChanging();
		partial void OnMembercardChanged();
		
		public virtual IList<tConsumptionMaster> TConsumptionMasters
        {
            get { return _tConsumptionMasters; }
            set
			{
				OnTConsumptionMastersChanging();
				_tConsumptionMasters = value;
				OnTConsumptionMastersChanged();
			}
        }
		partial void OnTConsumptionMastersChanging();
		partial void OnTConsumptionMastersChanged();
		
        #endregion
    }
}
